//
//  SectionViewController.h
//  NewsReader
//
//  Created by blacksun on 10-10-27.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import <QuartzCore/QuartzCore.h>
#import "Section.h"
#import "ModelParseUtil.h"
#import "HttpUtil.h"
#import "NewsReaderAppDelegate.h"
#import "ImageStorgeUtil.h"
#import "ImageDownloader.h"
@class RootViewController;
@class ItemListController;


@interface SectionViewController : UIViewController <ImageDownloaderDelegate>{
	UILabel *titleLabel;
	UILabel *summaryLabel;
	UILabel *lastFeedTitleLabel;
	UIImageView *imageView;
	UIActivityIndicatorView *activity;
	Section *section;
	UIButton *deleteButton;
	UIImageView *closeImageView;
	UIButton *customButton;
	NSMutableDictionary *imageDownloadsInProgress;
	UIView *shadowView;
}
@property (nonatomic, retain) IBOutlet UIView *shadowView;
@property (nonatomic, retain) IBOutlet UIImageView *closeImageView;
@property (nonatomic, retain) NSMutableDictionary *imageDownloadsInProgress;
@property (nonatomic, retain) IBOutlet UILabel *titleLabel;
@property (nonatomic, retain) IBOutlet UILabel *summaryLabel;
@property (nonatomic, retain) IBOutlet UIImageView *imageView;
@property (nonatomic, retain) IBOutlet UIActivityIndicatorView *activity;
@property (nonatomic, retain) Section *section;
@property (nonatomic, retain) IBOutlet UIButton *deleteButton;
@property (nonatomic, retain) IBOutlet UIButton *customButton;
@property (nonatomic, retain) IBOutlet UILabel *lastFeedTitleLabel;

- (IBAction) sectionClicked:(id)sender;
- (IBAction) deleteSection:(id)sender;
- (void)updateImage;
- (void)needToDeleteMySelf;
- (void)resumeNormal;
- (CAAnimation *)shakeAnimation;
@end
